package com.chb.service.sys.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chb.entity.sys.User;
import com.chb.repository.sys.UserRepository;
import com.chb.service.sys.UserService;

@Service("userService")
public class UserServiceImpl  implements UserService{

	@Resource
	private UserRepository userRepository;
	
	@Override
	public User findByUserName(String userName) {
		return this.userRepository.findByUserName(userName);
	}

	
}
